package edu.zut.cs.software.example.shop.domin;

import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import edu.zut.cs.software.example.Menu.domain.SubMenu;
import edu.zut.cs.software.example.domain.BaseEntity;
import edu.zut.cs.software.example.student.domain.Student;

/**
 * 
 * @author zhangyingpeng
 *
 */
@Table(name="T_Shop")
@Entity
public class Shop extends BaseEntity<Long>{

        /**
	 * 
	 */
	@ManyToOne
	private static final long serialVersionUID = -5259093343450760425L;
        
        @Column
        String businessname;//business Name
        @Column
	    String shopname;
        @Column
	    String shopID;//Shop ID
        @Column
	    String 	shopaddress;
        public String getBusinessprice() {
			return businessprice;
		}
		public void setBusinessprice(String businessprice) {
			this.businessprice = businessprice;
		}
		public String getBusinessmany() {
			return businessmany;
		}
		public void setBusinessmany(String businessmany) {
			this.businessmany = businessmany;
		}
		@Column
	    String 	businessprice;
        @Column
	    String 	businessmany;
        @Column
        Long studentid;
        
       public Long getStudentid() {
			return studentid;
		}
		public void setStudentid(Long studentid) {
			this.studentid = studentid;
		}
	
		public String getBusinessname() {
			return businessname;
		}
		public void setBusinessname(String businessname) {
			this.businessname = businessname;
		}
		public String getShopname() {
			return shopname;
		}
		public void setShopname(String shopname) {
			this.shopname = shopname;
		}
	
		public String getShopID() {
			return shopID;
		}
		public void setShopID(String shopID) {
			this.shopID = shopID;
		}
		public String getShopaddress() {
			return shopaddress;
		}
		public void setShopaddress(String shopaddress) {
			this.shopaddress = shopaddress;
		}
		@Override
		public String toString() {
			return "Shop [businessname=" + businessname + ", shopname=" + shopname + ", shopID=" + shopID
					+ ", shopaddress=" + shopaddress + ", businessprice=" + businessprice + ", businessmany="
					+ businessmany + ", studentid=" + studentid + "]";
		}
		}
		


